<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>

<body>
<?php 
	class DataProvider 
		{ 
            public static function ExecuteQuery($sql) 
            { 
                   $connection = mysql_connect("localhost","root","") or 
                         die ("couldn't connect to localhost"); 
                   // tecmart : Tên CSDL 
                   mysql_select_db("techmart",$connection); 
                   mysql_query("set names 'utf8'"); 
                   $result = mysql_query($sql,$connection); 
				   
				   //var_dump($sql, mysql_error());
                   mysql_close($connection); 
                   return $result; 
            } 
			public static function ChangeURL($path)
			{
				echo '<script type = "text/javascript">';
				echo 'location = "'.$path.'";';
				echo '</script>';
			}
		} 
      ?>
</body>
</html>